#ifndef _ADC_H_
#define _ADC_H_

#include "stm32f10x.h"
#include "platform_config.h"

extern int ADC_Open(ADC_TypeDef* ADCx);
extern int ADC_Close(ADC_TypeDef* ADCx);
extern void ADC_SoftwareStart(ADC_TypeDef* ADCx);
// extern void ADC_Read(uint16_t *x, uint16_t *y, uint16_t *z);
extern void ADC_Read(int adcChannel, uint16_t *x, uint16_t *y);

#endif /* ifndef _ADC_H_ */
